/* 
 * File:   houseconstanttest.cpp
 * Author: reinhard
 *
 * Created on March 11, 2011, 2:19 PM
 */

#include <stdlib.h>
#include "gtest/gtest.h"
#include "gtesthelper.hpp"
#include "houseconstants.hpp"

TEST(HouseTest, ConsistentHouseSize) {
  EXPECT_EQ(HouseConstants::getRowCount(),HouseConstants::getMap().size());
  for(int i = 0; i < HouseConstants::getMap().size(); i++)
    EXPECT_EQ(HouseConstants::getMap()[i].size(),HouseConstants::getColumnCount());
  GTestHelper::expectStrictlyBetween(HouseConstants::getTeleportXFromField(),
          0, HouseConstants::getColumnCount());
  GTestHelper::expectStrictlyBetween(HouseConstants::getTeleportYFromField(),
          0, HouseConstants::getRowCount());
}
